package com.ch.home.bean;

import java.util.ArrayList;
import java.util.Arrays;

/**
 * Created by CHEN on 2019/8/24.
 */
public class DishCustom {

    private  Integer customId;
    private  Integer dishId;
    private  String customContent;

    private ArrayList<String> url;
    private ArrayList<String> previewUrl;


    public DishCustom() {
    }

    public DishCustom(Integer customId, Integer dishId, String customContent, ArrayList<String> url, ArrayList<String> previewUrl) {
        this.customId = customId;
        this.dishId = dishId;
        this.customContent = customContent;
        this.url = url;
        this.previewUrl = previewUrl;
    }

    public Integer getCustomId() {

        return customId;
    }

    public void setCustomId(Integer customId) {
        this.customId = customId;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public String getCustomContent() {
        return customContent;
    }

    public void setCustomContent(String customContent) {
        this.customContent = customContent;
    }

    public ArrayList<String> getUrl() {
        return url;
    }

    public void setUrl(ArrayList<String> url) {
        this.url = url;
    }

    public ArrayList<String> getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(ArrayList<String> previewUrl) {
        this.previewUrl = previewUrl;
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass( ) != o.getClass( )) return false;

        DishCustom that = (DishCustom) o;

        if (customId != null ? !customId.equals(that.customId) : that.customId != null) return false;
        if (dishId != null ? !dishId.equals(that.dishId) : that.dishId != null) return false;
        if (customContent != null ? !customContent.equals(that.customContent) : that.customContent != null)
            return false;
        if (url != null ? !url.equals(that.url) : that.url != null) return false;
        return previewUrl != null ? previewUrl.equals(that.previewUrl) : that.previewUrl == null;
    }

    @Override
    public int hashCode() {
        int result = customId != null ? customId.hashCode( ) : 0;
        result = 31 * result + (dishId != null ? dishId.hashCode( ) : 0);
        result = 31 * result + (customContent != null ? customContent.hashCode( ) : 0);
        result = 31 * result + (url != null ? url.hashCode( ) : 0);
        result = 31 * result + (previewUrl != null ? previewUrl.hashCode( ) : 0);
        return result;
    }

    @Override
    public String toString() {
        return "DishCustom{" +
                "customId=" + customId +
                ", dishId=" + dishId +
                ", customContent='" + customContent + '\'' +
                ", url=" + url +
                ", previewUrl=" + previewUrl +
                '}';
    }
}
